package mission2.service;

import java.util.List;

import mission2.dao.UserDAOImpl;
import mission2.entity.User;

public class ServiceImpl implements Service{

	UserDAOImpl userDaoImpl= new UserDAOImpl();
	public boolean create(User user) throws Exception {
	return	userDaoImpl.doCreate( user);
		
	}

	
	public boolean delete(User user) throws Exception {
		
		return	userDaoImpl.doDelete( user);
	}

	
	public boolean update(User user) throws Exception {
		
		return	userDaoImpl.doUpdate( user);
	}

	
	public List select(String id) throws Exception {
		
		return	userDaoImpl.select( id);
	}

	
	public List selectAll() throws Exception {
		
		return	userDaoImpl.selectAll();
	}

}
